package com.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author WZ
 * @version 1.0
 * @date 2021/9/2 11:53
 */
@Slf4j
public class MySwervletContextListener implements ServletContextListener {
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		log.info("MySwervletContextListener监听到项目初始化完成");
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		log.info("MySwervletContextListener监听到项目初始化销毁");
	}
}
